package cn.edu.ren.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName: cn.edu.ren.controller
 * @ClassName: FallbackController
 * @Description:
 * @author: RZS
 * @date: 2021/7/6  21:23
 */
@RestController
@RequestMapping("/fallback")
public class FallbackController {

    @GetMapping("/hello")
    public String fallback() {
        System.out.println(2/0);
        return "熔断时处理返回给调用方的信息: fallback";
    }

}
